package com.cn.demo.springboot.service.user;

import java.util.List;
import java.util.Set;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cn.demo.springboot.entity.User;
@Service
public interface UserService {
	@Transactional()
	public void insert(User user);
	void update(User user);
	
	List<User> get();
	
	User findUserByUserName(String phone);
	
	/**
	 * 获取权限集合
	 * @param userId
	 * @return
	 */
	Set<String> getPermissions(String userId);
}
